<?php
include('header.php');
?>
      <h1>Search and Browse all links here</h1>
      <hr>
          <form method="post" action="<?=$_SERVER['PHP_SELF'];?>" class="well form-search">
              <input type="text" name="search" class="span6 search-query"> 
              <button type="submit" class="btn">Search</button>
          </form>
      <hr>

      <?php
      if (isset($_REQUEST['search'])) {
        include('search.php');
      } else {
        include('browse.php');
      }
      ?>
    </div> <!-- /container -->

    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="assets/js/jquery.js"></script>
    <script src="assets/js/bootstrap-transition.js"></script>
    <script src="assets/js/bootstrap-alert.js"></script>
    <script src="assets/js/bootstrap-modal.js"></script>
    <script src="assets/js/bootstrap-dropdown.js"></script>
    <script src="assets/js/bootstrap-scrollspy.js"></script>
    <script src="assets/js/bootstrap-tab.js"></script>
    <script src="assets/js/bootstrap-tooltip.js"></script>
    <script src="assets/js/bootstrap-popover.js"></script>
    <script src="assets/js/bootstrap-button.js"></script>
    <script src="assets/js/bootstrap-collapse.js"></script>
    <script src="assets/js/bootstrap-carousel.js"></script>
    <script src="assets/js/bootstrap-typeahead.js"></script>

  </body>
</html>
